package yl.hs.bmipfull.pojo.vehiclemanage;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 吴高丰
 * @apiNote 车辆保养记录实体类
 * @since 2022年08月01日 14时30分07秒
 */
@DBTable(disName = "车辆保养记录", mapCode = "truck_maintain")
public class TruckMaintainEntity extends BaseEntity {

    /**
     * 主键ID
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "车辆保养记录编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "BYJL")
    private String sn;
    /**
     * 车牌号
     */
    @DBField(disName = "车牌号", mapCode = "truckplate")
    private String truckplate;
    /**
     * 车辆自编号
     */
    @DBField(disName = "车辆自编号", mapCode = "truckplatesn")
    private String truckplateSn;
    /**
     * 司机姓名
     */
    @DBField(disName = "司机姓名", mapCode = "driver")
    private String driver;
    /**
     * 下次保养公里数
     */
    @DBField(disName = "下次保养公里数", mapCode = "nextmaintainkilometers")
    private BigDecimal nextmaintainkilometers;
    /**
     * 保养门店
     */
    @DBField(disName = "保养门店", mapCode = "maintenanceStore")
    private String maintenanceStore;
    /**
     * 保养凭证
     */
    @DBField(disName = "保养凭证", mapCode = "maintenanceCertificate")
    private String maintenanceCertificate;
    /**
     * 保养前公里数
     */
    @DBField(disName = "保养前公里数", mapCode = "maintainkilometers")
    private BigDecimal maintainkilometers;
    /**
     * 保养项目
     */
    @DBField(disName = "保养项目", mapCode = "maintainproject")
    private String maintainproject;
    /**
     * 保养人
     */
    @DBField(disName = "保养人", mapCode = "maintainman")
    private String maintainman;
    /**
     * 保养时间
     */
    @DBField(disName = "保养时间", mapCode = "maintaintime")
    private Date maintaintime;
    /**
     * 下次保养时间
     */
    @DBField(disName = "下次保养时间", mapCode = "nextmaintaintime")
    private Date nextmaintaintime;
    /**
     * 保养费用
     */
    @DBField(disName = "保养费用", mapCode = "maintainmoney")
    private BigDecimal maintainmoney;
    /**
     * 备注
     */
    @DBField(disName = "备注", mapCode = "remark")
    private String remark;
    /**
     * 状态
     */
    @DBField(disName = "状态", mapCode = "state")
    private int state;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSn() {
        return this.sn;
    }

    public void setTruckplate(String truckplate) {
        this.truckplate = truckplate;
    }

    public String getTruckplate() {
        return this.truckplate;
    }

    public void setTruckplateSn(String truckplateSn) {
        this.truckplateSn = truckplateSn;
    }

    public String getTruckplateSn() {
        return this.truckplateSn;
    }

    public void setMaintainkilometers(BigDecimal maintainkilometers) {
        this.maintainkilometers = maintainkilometers;
    }

    public BigDecimal getMaintainkilometers() {
        return this.maintainkilometers;
    }

    public void setMaintainproject(String maintainproject) {
        this.maintainproject = maintainproject;
    }

    public String getMaintainproject() {
        return this.maintainproject;
    }

    public void setMaintainman(String maintainman) {
        this.maintainman = maintainman;
    }

    public String getMaintainman() {
        return this.maintainman;
    }

    public void setMaintaintime(Date maintaintime) {
        this.maintaintime = maintaintime;
    }

    public Date getMaintaintime() {
        return this.maintaintime;
    }

    public void setMaintainmoney(BigDecimal maintainmoney) {
        this.maintainmoney = maintainmoney;
    }

    public BigDecimal getMaintainmoney() {
        return this.maintainmoney;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getState() {
        return this.state;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public BigDecimal getNextmaintainkilometers() {
        return nextmaintainkilometers;
    }

    public void setNextmaintainkilometers(BigDecimal nextmaintainkilometers) {
        this.nextmaintainkilometers = nextmaintainkilometers;
    }

    public String getMaintenanceStore() {
        return maintenanceStore;
    }

    public void setMaintenanceStore(String maintenanceStore) {
        this.maintenanceStore = maintenanceStore;
    }

    public String getMaintenanceCertificate() {
        return maintenanceCertificate;
    }

    public void setMaintenanceCertificate(String maintenanceCertificate) {
        this.maintenanceCertificate = maintenanceCertificate;
    }

    public Date getNextmaintaintime() {
        return nextmaintaintime;
    }

    public void setNextmaintaintime(Date nextmaintaintime) {
        this.nextmaintaintime = nextmaintaintime;
    }
}